package com.learn.annotation_config.autowired;

import com.learn.annotation_config.autowired.beans.service.UserServiceImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan
public class AutowiredApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AutowiredApplication.class);
        applicationContext.getBean("userService", UserServiceImpl.class).show();
    }
}
